import request from '@/utils/request'
const serviceName = 'Device'
//  列表
export function queryDeviceProjects(data) {
  return request({
    url: serviceName + '/DeviceProject/QueryDeviceProjects',
    method: 'post',
    data
  })
}
//  详情
export function getDeviceProject(Id) {
  return request({
    url: serviceName + '/DeviceProject/GetDeviceProject?Id=' + Id,
    method: 'get'
  })
}
//  新增 修改
export function saveDeviceProject(data) {
  return request({
    url: serviceName + '/DeviceProject/SaveDeviceProject',
    method: 'post',
    data
  })
}
//  删除
export function deleteDeviceProjects(data) {
  return request({
    url: serviceName + '/DeviceProject/DeleteDeviceProjects',
    method: 'post',
    data
  })
}

export default {
  queryDeviceProjects,
  getDeviceProject,
  saveDeviceProject,
  deleteDeviceProjects
}
